//
//  YCAlertView1ViewController.m
//  DemoAlertView
//
//  Created by tangkexiong on 16/3/8.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCAlertView1ViewController.h"

#import "YCAlertView1.h"

@interface YCAlertView1ViewController ()

@end

@implementation YCAlertView1ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *btn1 = [[UIButton alloc] initWithFrame:CGRectMake(8, 72, 100, 44)];
    [btn1 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn1 setTitleColor:[UIColor grayColor] forState:UIControlStateHighlighted];
    [btn1 setTitle:@"模仿系统的" forState:UIControlStateNormal];
    [btn1 addTarget:self action:@selector(btn1Clicked:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn1];
    
    [self btn1Clicked:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)btn1Clicked:(id)sender {
    YCAlertView1 *alert = [[YCAlertView1 alloc] initWithTitle:@"提示提示提示提示提示提示提示提示提示提示提示提示提示提示提示" Message:@"测试测试测试测试测试测试测试测试测试测试测试测试试测试测试试测试测试试测试测试试测试测试试测试测试试测试测试" Delegate:nil ButtonTitles:@"确定", @"测试", @"测试", @"测试", @"取消", nil];
    [alert show];
}

@end
